from gd.function import draw_gps


def makegd(result, base_name, decide):
    customer_list = [{'customer_id': 0, 'coordinate': (112.6184, 37.73987), 'name': '中心仓库'},
                     {'customer_id': 1, 'coordinate': (112.5172, 37.89672), 'name': '配送点1'},
                     {'customer_id': 2, 'coordinate': (112.5292, 37.90317), 'name': '配送点2'},
                     {'customer_id': 3, 'coordinate': (112.5839, 37.95437), 'name': '配送点3'},
                     {'customer_id': 4, 'coordinate': (112.5371, 37.96541), 'name': '配送点4'},
                     {'customer_id': 5, 'coordinate': (112.5909, 37.92559), 'name': '配送点5'},
                     {'customer_id': 6, 'coordinate': (112.4532, 38.0228), 'name': '配送点6'},
                     {'customer_id': 7, 'coordinate': (112.447, 37.85839), 'name': '配送点7'},
                     {'customer_id': 8, 'coordinate': (112.5026, 37.84839), 'name': '配送点8'},
                     {'customer_id': 9, 'coordinate': (112.5247, 37.8917), 'name': '配送点9'},
                     {'customer_id': 10, 'coordinate': (112.5861, 37.88023), 'name': '配送点10'},
                     {'customer_id': 11, 'coordinate': (112.5718, 37.89272), 'name': '配送点11'},
                     {'customer_id': 12, 'coordinate': (112.6057, 37.87521), 'name': '配送点12'},
                     {'customer_id': 13, 'coordinate': (112.5554, 37.90073), 'name': '配送点13'},
                     {'customer_id': 14, 'coordinate': (112.5555, 37.85733), 'name': '配送点14'},
                     {'customer_id': 15, 'coordinate': (112.6071, 37.84334), 'name': '配送点15'},
                     {'customer_id': 16, 'coordinate': (112.5659, 37.87282), 'name': '配送点16'},
                     {'customer_id': 17, 'coordinate': (112.5934, 37.84341), 'name': '配送点17'},
                     {'customer_id': 18, 'coordinate': (112.6273, 37.86871), 'name': '配送点18'},
                     {'customer_id': 19, 'coordinate': (112.5714, 37.84249), 'name': '配送点19'},
                     {'customer_id': 20, 'coordinate': (112.5698, 37.84078), 'name': '配送点20'},
                     {'customer_id': 21, 'coordinate': (112.6185, 37.73893), 'name': '配送点21'},
                     {'customer_id': 22, 'coordinate': (112.6068, 37.78265), 'name': '配送点22'},
                     {'customer_id': 23, 'coordinate': (112.622, 37.76124), 'name': '配送点23'},
                     {'customer_id': 24, 'coordinate': (112.5938, 37.80586), 'name': '配送点24'},
                     {'customer_id': 25, 'coordinate': (112.5123, 37.82786), 'name': '配送点25'},
                     {'customer_id': 26, 'coordinate': (112.619, 37.72334), 'name': '配送点26'},
                     {'customer_id': 27, 'coordinate': (112.5861, 37.80925), 'name': '配送点27'},
                     {'customer_id': 28, 'coordinate': (112.5593, 37.78849), 'name': '配送点28'},
                     {'customer_id': 29, 'coordinate': (112.6379, 37.81681), 'name': '配送点29'},
                     {'customer_id': 30, 'coordinate': (112.5766, 37.73005), 'name': '配送点30'},
                     {'customer_id': 31, 'coordinate': (112.4961, 37.76632), 'name': '配送点31'},
                     {'customer_id': 32, 'coordinate': (112.5504, 37.80778), 'name': '配送点32'}]
    # customer_list = [{'customer_id': 0, 'coordinate': (116.322033, 39.894912), 'name': '中心仓库00：北京西站'},
    #                  {'customer_id': 1, 'coordinate': (116.336304, 39.897873), 'name': '配送点01物美超市(华天大厦店)'},
    #                  {'customer_id': 2, 'coordinate': (116.352684, 39.877464), 'name': '配送点02美廉美超市(白纸坊店)'},
    #                  {'customer_id': 3, 'coordinate': (116.375152, 39.893375), 'name': '配送点03沃尔玛(富卓商厦店)'},
    #                  {'customer_id': 4, 'coordinate': (116.419116, 39.896463), 'name': '配送点04永辉超市(Bravo搜秀城店)'},
    #                  {'customer_id': 5, 'coordinate': (116.379884, 39.925904), 'name': '配送点05顺天府超市(府右街店)'},
    #                  {'customer_id': 6, 'coordinate': (116.272453, 39.888329), 'name': '配送点06物美超市(大成路店)'},
    #                  {'customer_id': 7, 'coordinate': (116.294458, 39.864404), 'name': '配送点07物美超市(东大街店)'},
    #                  {'customer_id': 8, 'coordinate': (116.317208, 39.879463), 'name': '配送点08永辉超市(丰台区六里桥店)'},
    #                  {'customer_id': 9, 'coordinate': (116.312586, 40.052345), 'name': '配送点09超市发(西二旗店)'},
    #                  {'customer_id': 10, 'coordinate': (116.317721, 39.981), 'name': '配送点10超市发(科学城店)'},
    #                  {'customer_id': 11, 'coordinate': (116.509337, 40.023474), 'name': '配送点11马南里生活超市(马南里便利店)'},
    #                  {'customer_id': 12, 'coordinate': (116.460889, 39.978775), 'name': '配送点12家乐福(四元桥店)'},
    #                  {'customer_id': 13, 'coordinate': (116.53136, 39.969355), 'name': '配送点13物美大卖场(东坝恒大店)'},
    #                  {'customer_id': 14, 'coordinate': (116.54318, 40.035119), 'name': '配送点14物美超市(孙河店)'},
    #                  {'customer_id': 15, 'coordinate': (116.511408, 39.863389), 'name': '配送点15京客隆超市(垡头店)'},
    #                  {'customer_id': 16, 'coordinate': (116.473823, 39.858004), 'name': '配送点16麦德龙(北京十里河商场)'},
    #                  {'customer_id': 17, 'coordinate': (116.49825, 39.791389), 'name': '配送点17美廉美超市(亦庄店)'},
    #                  {'customer_id': 18, 'coordinate': (116.574562, 39.854007), 'name': '配送点18多达百货超市'},
    #                  {'customer_id': 19, 'coordinate': (116.579567, 39.817757), 'name': '配送点19永辉超市(通州区台湖泰禾店)'},
    #                  {'customer_id': 20, 'coordinate': (116.293588, 39.844546), 'name': '配送点20物美超市(丰台新华东店)'},
    #                  {'customer_id': 21, 'coordinate': (116.317208, 39.879463), 'name': '配送点21永辉超市(丰台区六里桥店)'},
    #                  {'customer_id': 22, 'coordinate': (116.292071, 39.817966), 'name': '配送点22永旺超市(永旺梦乐城店)'},
    #                  {'customer_id': 23, 'coordinate': (116.358115, 39.85116), 'name': '配送点23麦德龙会员店(草桥上品+店)'},
    #                  {'customer_id': 24, 'coordinate': (116.299478, 39.824816), 'name': '配送点24永辉超市(丰科万达店)'},
    #                  {'customer_id': 25, 'coordinate': (116.44808, 39.75855), 'name': '配送点25永辉超市(瀛海环宇坊店)'},
    #                  {'customer_id': 26, 'coordinate': (116.424993, 39.798776), 'name': '配送点26世纪华联超市(万源里店)'},
    #                  {'customer_id': 27, 'coordinate': (116.479525, 39.795687), 'name': '配送点27京客隆超市(亦庄店)'},
    #                  {'customer_id': 28, 'coordinate': (116.365285, 39.793909), 'name': '配送点28京客隆超市(西红门店)'},
    #                  {'customer_id': 29, 'coordinate': (116.408893, 39.985067), 'name': '配送点29华联超市(安苑北里店)'},
    #                  {'customer_id': 30, 'coordinate': (116.4312, 39.986597), 'name': '配送点30天天如壹生活超市(育慧南路店)'},
    #                  {'customer_id': 31, 'coordinate': (116.374131, 40.001284), 'name': '配送点31物美超市(北沙滩店)'},
    #                  {'customer_id': 32, 'coordinate': (116.416548, 40.004231), 'name': '配送点32永辉超市(金泉广场店)'},
    #                  {'customer_id': 33, 'coordinate': (116.374131, 40.001284), 'name': '配送点33美廉美超市(安外店)'},
    #                  {'customer_id': 34, 'coordinate': (116.209734, 39.845445), 'name': '配送点34物美超市(顶层家居智媒广场店)'},
    #                  {'customer_id': 35, 'coordinate': (116.240395, 39.834702), 'name': '配送点35物美超市(晓月苑店)'},
    #                  {'customer_id': 36, 'coordinate': (116.231937, 39.894154), 'name': '配送点36永辉超市(鲁谷店)'},
    #                  {'customer_id': 37, 'coordinate': (116.254035, 39.93097), 'name': '配送点37物美超市(田村店)'},
    #                  {'customer_id': 38, 'coordinate': (116.267924, 40.079579), 'name': '配送点38超市发(北清路店)'},
    #                  {'customer_id': 39, 'coordinate': (116.288361, 40.150164), 'name': '配送点39物美超市(沙河店)'},
    #                  {'customer_id': 40, 'coordinate': (116.339571, 39.791708), 'name': '配送点40永辉超市(大兴区鸿坤理想城店)'}]
    draw_gps(customer_list, result, base_name, decide)